package com.workstudy.workstudy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.workstudy.common.annotation.Excel;
import com.workstudy.common.core.domain.BaseEntity;

/**
 * 学生申请岗位对象 workstudy_post_user
 * 
 * @author ws
 * @date 2021-03-28
 */
public class WorkstudyPostUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生申请岗位id */
    private Long postUserId;

    /** 学生id */
    @Excel(name = "学生id")
    private Long userId;

    /** 岗位id */
    @Excel(name = "岗位id")
    private Long postId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 申请理由 */
    @Excel(name = "申请理由")
    private String applrContent;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date applrTime;

    /** 学生处 */
    @Excel(name = "学生处")
    private String approveBy;

    /** 学生处审批理由 */
    @Excel(name = "学生处审批理由")
    private String approveContent;

    /** 学生处审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "学生处审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date approveTime;

    /** 用人单位 */
    @Excel(name = "用人单位")
    private String approveEndBy;

    /** 用人单位审批理由 */
    @Excel(name = "用人单位审批理由")
    private String approveEndContent;

    private String loginName;

    private String userName;

    private String postName;

    /** 用人单位审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "用人单位审批时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date approveEndTime;

    public void setPostUserId(Long postUserId) 
    {
        this.postUserId = postUserId;
    }

    public Long getPostUserId() 
    {
        return postUserId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPostId(Long postId) 
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setApplrContent(String applrContent) 
    {
        this.applrContent = applrContent;
    }

    public String getApplrContent() 
    {
        return applrContent;
    }
    public void setApplrTime(Date applrTime) 
    {
        this.applrTime = applrTime;
    }

    public Date getApplrTime() 
    {
        return applrTime;
    }
    public void setApproveBy(String approveBy) 
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy() 
    {
        return approveBy;
    }
    public void setApproveContent(String approveContent) 
    {
        this.approveContent = approveContent;
    }

    public String getApproveContent() 
    {
        return approveContent;
    }
    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }
    public void setApproveEndBy(String approveEndBy) 
    {
        this.approveEndBy = approveEndBy;
    }

    public String getApproveEndBy() 
    {
        return approveEndBy;
    }
    public void setApproveEndContent(String approveEndContent) 
    {
        this.approveEndContent = approveEndContent;
    }

    public String getApproveEndContent() 
    {
        return approveEndContent;
    }
    public void setApproveEndTime(Date approveEndTime) 
    {
        this.approveEndTime = approveEndTime;
    }

    public Date getApproveEndTime() 
    {
        return approveEndTime;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postUserId", getPostUserId())
            .append("userId", getUserId())
            .append("postId", getPostId())
            .append("status", getStatus())
            .append("applrContent", getApplrContent())
            .append("applrTime", getApplrTime())
            .append("approveBy", getApproveBy())
            .append("approveContent", getApproveContent())
            .append("approveTime", getApproveTime())
            .append("approveEndBy", getApproveEndBy())
            .append("approveEndContent", getApproveEndContent())
            .append("approveEndTime", getApproveEndTime())
                .append("userName", getUserName())
                .append("postName", getPostName())
                .append("loginName", getLoginName())
            .toString();
    }
}
